package com.chance.cc.crawler.development.command.schedule.du;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.development.command.job.domain.du.DUSellCalenderCrawlerSchedulerJob;
import com.chance.cc.crawler.development.command.job.domain.du.DuProductDetailCrawlerSchedulerJob;
import com.chance.cc.crawler.development.command.job.domain.du.DuProductFindListCrawlerSchedulerJob;
import com.chance.cc.crawler.development.command.schedule.CommonCrawlerJobTestScheduler;

/**
 * @author lt
 * @version 1.0
 * @date 2021-04-26 14:10:49
 * @email okprog@sina.com
 */
public class DuProductCrawlerJobSchedule extends CommonCrawlerJobTestScheduler {

    public static void main(String[] args) {

//        publicCrawlerScheduleJob(DuProductFindListCrawlerSchedulerJob.crawlerScheduler());
//        publicCrawlerScheduleJob(DuProductDetailCrawlerSchedulerJob.crawlerScheduler());

//        publicCrawlerScheduleJob(DUSellCalenderCrawlerSchedulerJob.crawlerScheduler());

        delCrawlerScheduleJob(DuProductFindListCrawlerSchedulerJob.crawlerScheduler());
        delCrawlerScheduleJob(DuProductDetailCrawlerSchedulerJob.crawlerScheduler());
        delCrawlerScheduleJob(DUSellCalenderCrawlerSchedulerJob.crawlerScheduler());
    }

    public static void publicCrawlerScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_15.republishCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_15);
    }

    public static void delCrawlerScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_15.deleteCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_15);
    }

}
